package com.cms.customer.handler;

import com.cms.util.CmsConstant;

import net.vinote.smart.platform.module.database.bo.BizObject;
import net.vinote.smart.platform.service.dw.handler.CommonHandler;
import net.vinote.smart.platform.service.dw.handler.HandlerPerimissionAnnotation;
import net.vinote.smart.platform.service.util.Permission;

@HandlerPerimissionAnnotation(
		query = @Permission(
				ExtendedPermision = { CmsConstant.Permission.Contact_Book_Query }),
		insert = @Permission(
				ExtendedPermision = { CmsConstant.Permission.Contact_Book_Insert }),
		update = @Permission(
				ExtendedPermision = { CmsConstant.Permission.Contact_Book_Update }),
		delete = @Permission(
				ExtendedPermision = { CmsConstant.Permission.Contact_Book_Delete }))
public class ContactBookHandler extends CommonHandler {

	@Override
	public void initDisplayForAdd(BizObject bo) {
		setDefaultValue("RELATIVECUSTOMERID",
				request.getParameter("customerID"));
	}
}
